﻿<!DOCTYPE HTML>
<!-- saved from url=(0150)https://security.weibo.com/iforgot/loginname -->
<!DOCTYPE html PUBLIC "" ""><HTML><HEAD><META content="IE=11.0000" http-equiv="X-UA-Compatible">
     
<META charset="utf-8">     
<META http-equiv="X-UA-Compatibl" content="IE=edge,chrome=1">     
<TITLE>找回帐号密码</TITLE>     
<LINK href="/static/css/frame.css" rel="stylesheet" type="text/css">     
<LINK href="/static/css/iforgot_index.css" rel="stylesheet" type="text/css">     
<LINK href="/static/css/skin.css" rel="stylesheet" type="text/css"> 
    
<SCRIPT src="/static/js/jquery.js" type="text/javascript"></SCRIPT>
     
<SCRIPT src="/static/js/base.js" type="text/javascript"></SCRIPT>
 
<STYLE>
    .hid{
        display:none;
    }
</STYLE>

<META name="GENERATOR" content="MSHTML 11.00.9600.18739"></HEAD> 
<BODY>
<DIV class="WB_miniblog"><!-- 首页 -->     
<DIV class="iforgot_bd">
<DIV class="iforgot_header clearfix">
<DIV class="logo_mod W_fl"></DIV>
<DIV class="name_mod W_fr"><A class="S_txt1" href="http://www.sina.com.cn/">盘古首页</A>                 <A class="S_txt1" href="http://weibo.com/">登录</A> 
                <A class="S_txt1 last" href="http://help.weibo.com/">帮助</A>      
       </DIV></DIV>
<DIV class="iforgot_cont">
<DIV class="i_top">
<H3 class="title">找回帐号密码</H3></DIV>
<DIV class="i_mod">
<DIV class="form_mod">
<UL class="form_list">
  <LI class="item"><SPAN class="tit">登录名：</SPAN>                     
<INPUT name="pcid" id="pcid" type="hidden" value="tc-3296c16ca3389bb9dbc6649141a653bb4383"> 
                      
<INPUT class="fInput w200" id="loginname" type="text" placeholder="请输入注册时的邮箱/手机" value="邮箱/会员帐号/手机号"> 
                      <SPAN class="hid" id="tip_span"><I class="W_icon icon_rederrorS" 
  id="licon"></I><I id="errortip"></I></SPAN>                 </LI>
  <LI class="item"><SPAN class="tit">验证码：</SPAN>								 <SPAN class="code_mod">
<INPUT class="fInput w93" id="code" type="text" placeholder="">	
{:captcha_img()}	 
<A class="form_prompt" id="change_code" href="javascript:void(0);">换一换</A>        
                               <SPAN class="hid" id="codespan"><I class="W_icon icon_succ" 
  id="codep"></I><I id="codemsg"></I></SPAN>								 </SPAN>                 
  </LI>
  <LI class="item">
  <DIV class="btn_mod"><A class="W_btn_a btn_34px" id="btn" 
  href="javascript:;">立即验证</A></DIV></LI></UL></DIV></DIV></DIV></DIV></DIV>

<SCRIPT type="text/javascript">
    var loginname=$('#loginname');
    var code=$('#code');
    var codeimg=$('.code_mod>img');
    var pcid=$('#pcid');
    var btn=$('#btn');
    var errortip=$('#errortip');
    var tipspan=$('#tip_span');
    var codemsg=$('#codemsg');
    var codep=$('#codep');
    var licon=$('#licon');
    var entry = "weibo";
    $('#change_code').on('click', function () {
        $('#codespan').attr('class','hid');
        changecode();
    });
    loginname.on('focus',function(){
        $('#tip_span').attr('class','hid');
    });
    code.on('focus',function(){
        $('#codespan').attr('class','hid');
    });
    $('#btn').on('click', function () {
        if(!loginname.val()){
            errortip.html('请输入登录名');
            $('#tip_span').attr('class','form_prompt');
        }
        if(!code.val()){
            codemsg.html('请输入验证码');
            codep.attr('class','W_icon icon_rederrorS');
            $('#codespan').attr('class','form_prompt');
        }
        $.post('/iforgot/ajloginname',
                { loginname: loginname.val(),pcid: pcid.val(),pincode:code.val(),entry:entry},
                function(data) {
                    var json = JSON.parse(data);
                    if(json.retcode == 100000){
                        location.href= json.data.url;
                    }else if(json.retcode == 100038){
                        errortip.html('用户名不存在');
                        $('#tip_span').attr('class','form_prompt');
                    } else if(json.retcode == 100037){
                        codemsg.html('请输入正确的验证码');
                        codep.attr('class','W_icon icon_rederrorS');
                        $('#codespan').attr('class','form_prompt');
                        changecode();
                    }else {
                        errortip.html(json.msg);
                        $('#tip_span').attr('class','form_prompt');
                    }


                });
    });
    function changecode(){
        codeimg.attr('src','/captcha.html?m='+Math.random());
               
    }
</SCRIPT>
</BODY></HTML>
